inherited FormConvenios: TFormConvenios
  Tag = 2
  Left = 193
  Top = 47
  BorderStyle = bsSingle
  Caption = 'Conv'#234'nios'
  ClientHeight = 652
  ClientWidth = 1036
  OldCreateOrder = True
  WindowState = wsMaximized
  PixelsPerInch = 96
  TextHeight = 13
  inherited Splitter1: TSplitter
    Left = 281
    Height = 583
  end
  inherited pnlSelec: TPanel
    Width = 281
    Height = 583
    inherited Splitter3: TSplitter
      Top = 153
      Width = 279
    end
    inherited pnlBusca: TGroupBox
      Width = 279
      Height = 152
      Caption = 'Digite os dados para a busca'
      inherited lblCriterio: TLabel
        Left = 88
        Width = 71
        Caption = 'Nome Fantasia'
      end
      object Label20: TLabel [1]
        Left = 8
        Top = 16
        Width = 33
        Height = 13
        Caption = 'C'#243'digo'
      end
      object Label4: TLabel [2]
        Left = 200
        Top = 96
        Width = 24
        Height = 13
        Caption = 'Ativo'
      end
      object Label7: TLabel [3]
        Left = 8
        Top = 56
        Width = 29
        Height = 13
        Caption = 'Grupo'
      end
      object Label9: TLabel [4]
        Left = 8
        Top = 96
        Width = 46
        Height = 13
        Caption = 'Subgrupo'
      end
      inherited CRITERIO: TMaskEdit
        Left = 88
      end
      object CODIGO: TMaskEdit
        Tag = 1
        Left = 8
        Top = 32
        Width = 73
        Height = 19
        CharCase = ecUpperCase
        Ctl3D = False
        ParentCtl3D = False
        TabOrder = 1
        OnChange = CRITERIOChange
        OnExit = CRITERIOExit
      end
      object ATIVO: TComboBox
        Left = 200
        Top = 114
        Width = 73
        Height = 21
        ItemHeight = 13
        TabOrder = 2
        Text = 'Sim'
        OnChange = CRITERIOChange
        OnClick = CRITERIOChange
        OnExit = ATIVOExit
        Items.Strings = (
          'Sim'
          'N'#227'o'
          'Todos')
      end
      object GRUPO: TComboBox
        Left = 8
        Top = 74
        Width = 185
        Height = 21
        ItemHeight = 13
        TabOrder = 3
        OnChange = CRITERIOChange
        OnClick = GRUPOClick
        OnExit = CRITERIOExit
        Items.Strings = (
          'Sim'
          'N'#227'o'
          'Indiferente')
      end
      object SUBGRUPO: TComboBox
        Left = 8
        Top = 114
        Width = 185
        Height = 21
        ItemHeight = 13
        TabOrder = 4
        OnChange = CRITERIOChange
        OnExit = CRITERIOExit
        Items.Strings = (
          'Sim'
          'N'#227'o'
          'Indiferente')
      end
    end
    inherited dbgRelacao: TSMDBGrid
      Top = 156
      Width = 279
      Height = 426
      Columns = <
        item
          Expanded = False
          FieldName = 'RELCONVENIO_CODIGO'
          Width = 72
          Visible = True
          FooterType = ftCustom
        end
        item
          Expanded = False
          FieldName = 'RELCONVENIO_DESCRICAO'
          Width = 174
          Visible = True
          FooterType = ftCount
        end>
    end
  end
  inherited Panel1: TPanel
    Left = 284
    Width = 752
    Height = 583
    inherited Splitter2: TSplitter
      Top = 579
      Width = 750
    end
    inherited PageControl1: TPageControl
      Top = 81
      Width = 750
      Height = 498
      ActivePage = TabSheet2
      Align = alClient
      object TabSheet2: TTabSheet
        Caption = 'Hist'#243'rico'
        ImageIndex = 1
        object PageControl4: TPageControl
          Left = 0
          Top = 0
          Width = 742
          Height = 470
          ActivePage = TabSheet5
          Align = alClient
          TabOrder = 0
          object TabSheet5: TTabSheet
            Caption = 'Mensal'
            object SMDBGrid2: TSMDBGrid
              Left = 0
              Top = 0
              Width = 734
              Height = 442
              Align = alClient
              Color = clWhite
              Ctl3D = False
              DataSource = dsHistorico
              Font.Charset = DEFAULT_CHARSET
              Font.Color = clWindowText
              Font.Height = -11
              Font.Name = 'MS Sans Serif'
              Font.Style = []
              Options = [dgTitles, dgIndicator, dgColumnResize, dgColLines, dgTabs, dgRowSelect, dgAlwaysShowSelection, dgConfirmDelete, dgCancelOnExit]
              ParentCtl3D = False
              ParentFont = False
              ReadOnly = True
              TabOrder = 0
              TitleFont.Charset = DEFAULT_CHARSET
              TitleFont.Color = clBlack
              TitleFont.Height = -11
              TitleFont.Name = 'MS Sans Serif'
              TitleFont.Style = [fsBold]
              Flat = True
              BandsFont.Charset = DEFAULT_CHARSET
              BandsFont.Color = clWindowText
              BandsFont.Height = -11
              BandsFont.Name = 'MS Sans Serif'
              BandsFont.Style = []
              Groupings = <>
              GridStyle.Style = gsSoftBrick
              GridStyle.OddColor = 14675694
              GridStyle.EvenColor = 13493476
              TitleHeight.PixelCount = 24
              FooterColor = clBtnFace
              ExOptions = [eoBooleanAsCheckBox, eoDisableDelete, eoDisableInsert, eoDrawGraphicField, eoENTERlikeTAB, eoKeepSelection, eoRowNumber, eoRowSizing, eoSelectedTitle, eoShowGlyphs, eoShowLookup, eoShowRecNo, eoStandardPopup, eoBLOBEditor]
              RegistryKey = 'Software\Scalabium'
              RegistrySection = 'SMDBGrid'
              WidthOfIndicator = 11
              DefaultRowHeight = 16
              ScrollBars = ssHorizontal
              ColCount = 7
              RowCount = 2
              Columns = <
                item
                  Expanded = False
                  FieldName = 'RELCREDITO_PERIODO'
                  Width = 61
                  Visible = True
                  FooterType = ftCustom
                end
                item
                  Expanded = False
                  FieldName = 'RELCREDITO_QTD'
                  Width = 73
                  Visible = True
                  FooterType = ftCustom
                end
                item
                  Expanded = False
                  FieldName = 'RELCREDITO_VALOR'
                  Width = 81
                  Visible = True
                  FooterType = ftCustom
                end
                item
                  Expanded = False
                  FieldName = 'RELCREDITO_TARIFA'
                  Visible = True
                  FooterType = ftCustom
                end
                item
                  Expanded = False
                  FieldName = 'RELCONVENIOTARIFA_TIPO'
                  Width = 34
                  Visible = True
                  FooterType = ftCustom
                end
                item
                  Expanded = False
                  FieldName = 'RELCREDITO_COMISSAO'
                  Width = 82
                  Visible = True
                  FooterType = ftCustom
                end>
            end
          end
          object TabSheet6: TTabSheet
            Caption = 'Maiores arrecadadores'
            ImageIndex = 1
            OnShow = TabSheet3Show
            object SMDBGrid4: TSMDBGrid
              Left = 0
              Top = 0
              Width = 734
              Height = 442
              Align = alClient
              Color = clWhite
              Ctl3D = False
              DataSource = dsPosto
              Font.Charset = DEFAULT_CHARSET
              Font.Color = clWindowText
              Font.Height = -11
              Font.Name = 'MS Sans Serif'
              Font.Style = []
              Options = [dgTitles, dgIndicator, dgColumnResize, dgColLines, dgTabs, dgRowSelect, dgAlwaysShowSelection, dgConfirmDelete, dgCancelOnExit]
              ParentCtl3D = False
              ParentFont = False
              ReadOnly = True
              TabOrder = 0
              TitleFont.Charset = DEFAULT_CHARSET
              TitleFont.Color = clBlack
              TitleFont.Height = -11
              TitleFont.Name = 'MS Sans Serif'
              TitleFont.Style = [fsBold]
              Flat = True
              BandsFont.Charset = DEFAULT_CHARSET
              BandsFont.Color = clWindowText
              BandsFont.Height = -11
              BandsFont.Name = 'MS Sans Serif'
              BandsFont.Style = []
              Groupings = <>
              GridStyle.Style = gsSoftBrick
              GridStyle.OddColor = 14675694
              GridStyle.EvenColor = 13493476
              TitleHeight.PixelCount = 24
              FooterColor = clBtnFace
              ExOptions = [eoBooleanAsCheckBox, eoDisableDelete, eoDisableInsert, eoDrawGraphicField, eoENTERlikeTAB, eoKeepSelection, eoRowNumber, eoRowSizing, eoSelectedTitle, eoShowGlyphs, eoShowLookup, eoShowRecNo, eoStandardPopup, eoBLOBEditor]
              RegistryKey = 'Software\Scalabium'
              RegistrySection = 'SMDBGrid'
              WidthOfIndicator = 11
              DefaultRowHeight = 16
              ScrollBars = ssHorizontal
              ColCount = 6
              RowCount = 2
              Columns = <
                item
                  Expanded = False
                  FieldName = 'FRANQUIA'
                  Width = 67
                  Visible = True
                  FooterType = ftCustom
                end
                item
                  Expanded = False
                  FieldName = 'NOME_FANTASIA'
                  Width = 132
                  Visible = True
                  FooterType = ftCustom
                end
                item
                  Expanded = False
                  FieldName = 'QTD'
                  Width = 77
                  Visible = True
                  FooterType = ftCustom
                end
                item
                  Expanded = False
                  FieldName = 'VALOR'
                  Width = 121
                  Visible = True
                  FooterType = ftCustom
                end
                item
                  Expanded = False
                  FieldName = 'COMISSAO'
                  Width = 114
                  Visible = True
                  FooterType = ftCustom
                end>
            end
          end
        end
      end
      object TabSheet4: TTabSheet
        Caption = 'Resumo da sele'#231#227'o'
        ImageIndex = 3
        object PageControl2: TPageControl
          Left = 0
          Top = 0
          Width = 742
          Height = 470
          Align = alClient
          MultiLine = True
          ParentShowHint = False
          ShowHint = True
          TabOrder = 0
        end
        object SMDBGrid3: TSMDBGrid
          Left = 0
          Top = 0
          Width = 742
          Height = 470
          Align = alClient
          Color = clWhite
          Ctl3D = False
          DataSource = dsResumo
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clWindowText
          Font.Height = -11
          Font.Name = 'MS Sans Serif'
          Font.Style = []
          Options = [dgTitles, dgIndicator, dgColumnResize, dgColLines, dgTabs, dgRowSelect, dgAlwaysShowSelection, dgConfirmDelete, dgCancelOnExit]
          ParentCtl3D = False
          ParentFont = False
          ReadOnly = True
          TabOrder = 1
          TitleFont.Charset = DEFAULT_CHARSET
          TitleFont.Color = clBlack
          TitleFont.Height = -11
          TitleFont.Name = 'MS Sans Serif'
          TitleFont.Style = [fsBold]
          Flat = True
          BandsFont.Charset = DEFAULT_CHARSET
          BandsFont.Color = clWindowText
          BandsFont.Height = -11
          BandsFont.Name = 'MS Sans Serif'
          BandsFont.Style = []
          Groupings = <>
          GridStyle.Style = gsSoftBrick
          GridStyle.OddColor = 14675694
          GridStyle.EvenColor = 13493476
          TitleHeight.PixelCount = 24
          FooterColor = clBtnFace
          ExOptions = [eoBooleanAsCheckBox, eoDisableDelete, eoDisableInsert, eoDrawGraphicField, eoENTERlikeTAB, eoKeepSelection, eoRowNumber, eoRowSizing, eoSelectedTitle, eoShowGlyphs, eoShowLookup, eoShowRecNo, eoStandardPopup, eoBLOBEditor]
          RegistryKey = 'Software\Scalabium'
          RegistrySection = 'SMDBGrid'
          WidthOfIndicator = 11
          DefaultRowHeight = 16
          ScrollBars = ssHorizontal
          ColCount = 6
          RowCount = 2
          Columns = <
            item
              Expanded = False
              FieldName = 'RELCREDITO_PERIODO'
              Width = 58
              Visible = True
              FooterType = ftCustom
            end
            item
              Expanded = False
              FieldName = 'RELCREDITO_QTD'
              Width = 74
              Visible = True
              FooterType = ftCustom
            end
            item
              Expanded = False
              FieldName = 'RELCREDITO_VALOR'
              Width = 80
              Visible = True
              FooterType = ftCustom
            end
            item
              Expanded = False
              FieldName = 'RELCREDITO_TARIFA'
              Width = 99
              Visible = True
              FooterType = ftCustom
            end
            item
              Expanded = False
              FieldName = 'RELCREDITO_COMISSAO'
              Width = 83
              Visible = True
              FooterType = ftCustom
            end>
        end
      end
      object TabSheet7: TTabSheet
        Caption = 'Gr'#225'ficos'
        ImageIndex = 4
        object PageControl3: TPageControl
          Left = 0
          Top = 0
          Width = 742
          Height = 470
          ActivePage = TabSheet8
          Align = alClient
          MultiLine = True
          ParentShowHint = False
          ShowHint = True
          TabOrder = 0
          object TabSheet8: TTabSheet
            Caption = 'Evolu'#231#227'o individual'
            ImageIndex = 1
            OnShow = TabSheet8Show
            object DBChart1: TDBChart
              Left = 0
              Top = 32
              Width = 734
              Height = 410
              AnimatedZoom = True
              BackWall.Brush.Color = clWhite
              BackWall.Brush.Style = bsClear
              Foot.Text.Strings = (
                '')
              Gradient.EndColor = clSilver
              Gradient.Visible = True
              LeftWall.Color = clSilver
              Title.Text.Strings = (
                '')
              Title.Visible = False
              BottomAxis.Inverted = True
              MaxPointsPerPage = 18
              View3D = False
              Align = alClient
              BevelOuter = bvNone
              TabOrder = 0
              AutoSize = True
              object Series1: TLineSeries
                Marks.ArrowLength = 20
                Marks.Style = smsValue
                Marks.Visible = False
                DataSource = qryHistorico
                SeriesColor = clRed
                ShowInLegend = False
                Title = 'Comiss'#227'o'
                XLabelsSource = 'RELCREDITO_PERIODO'
                Dark3D = False
                Pointer.InflateMargins = True
                Pointer.Style = psCircle
                Pointer.Visible = True
                XValues.DateTime = False
                XValues.Name = 'X'
                XValues.Multiplier = 1.000000000000000000
                XValues.Order = loAscending
                YValues.DateTime = False
                YValues.Name = 'Y'
                YValues.Multiplier = 1.000000000000000000
                YValues.Order = loNone
                YValues.ValueSource = 'RELCREDITO_COMISSAO'
              end
              object Series2: TLineSeries
                Marks.ArrowLength = 20
                Marks.Style = smsValue
                Marks.Visible = False
                DataSource = qryHistorico
                SeriesColor = clMaroon
                ShowInLegend = False
                Title = 'Qtd'
                XLabelsSource = 'RELCREDITO_PERIODO'
                Dark3D = False
                Pointer.InflateMargins = True
                Pointer.Style = psCircle
                Pointer.Visible = True
                XValues.DateTime = False
                XValues.Name = 'X'
                XValues.Multiplier = 1.000000000000000000
                XValues.Order = loAscending
                YValues.DateTime = False
                YValues.Name = 'Y'
                YValues.Multiplier = 1.000000000000000000
                YValues.Order = loNone
                YValues.ValueSource = 'RELCREDITO_QTD'
              end
              object Series3: TLineSeries
                Active = False
                Marks.ArrowLength = 20
                Marks.Style = smsValue
                Marks.Visible = False
                DataSource = qryHistorico
                SeriesColor = clBlue
                ShowInLegend = False
                Title = 'Valor'
                XLabelsSource = 'RELCREDITO_PERIODO'
                Dark3D = False
                Pointer.InflateMargins = True
                Pointer.Style = psCircle
                Pointer.Visible = True
                XValues.DateTime = False
                XValues.Name = 'X'
                XValues.Multiplier = 1.000000000000000000
                XValues.Order = loAscending
                YValues.DateTime = False
                YValues.Name = 'Y'
                YValues.Multiplier = 1.000000000000000000
                YValues.Order = loNone
                YValues.ValueSource = 'RELCREDITO_VALOR'
              end
              object Series4: TLineSeries
                Active = False
                Marks.ArrowLength = 20
                Marks.Style = smsValue
                Marks.Visible = False
                DataSource = qryHistorico
                SeriesColor = clBlack
                ShowInLegend = False
                Title = 'Tarifa'
                XLabelsSource = 'RELCREDITO_PERIODO'
                Dark3D = False
                Pointer.InflateMargins = True
                Pointer.Style = psCircle
                Pointer.Visible = True
                XValues.DateTime = False
                XValues.Name = 'X'
                XValues.Multiplier = 1.000000000000000000
                XValues.Order = loAscending
                YValues.DateTime = False
                YValues.Name = 'Y'
                YValues.Multiplier = 1.000000000000000000
                YValues.Order = loNone
                YValues.ValueSource = 'RELCREDITO_TARIFA'
              end
            end
            object Panel3: TPanel
              Left = 0
              Top = 0
              Width = 734
              Height = 32
              Align = alTop
              TabOrder = 1
              object Button2: TButton
                Left = 3
                Top = 8
                Width = 35
                Height = 22
                Caption = '<<'
                TabOrder = 0
                OnClick = Button2Click
              end
              object Button1: TButton
                Left = 40
                Top = 8
                Width = 35
                Height = 21
                Caption = '>>'
                TabOrder = 1
                OnClick = Button1Click
              end
              object cbSerie1: TCheckBox
                Left = 80
                Top = 8
                Width = 73
                Height = 17
                Caption = 'Comiss'#227'o'
                Font.Charset = DEFAULT_CHARSET
                Font.Color = clRed
                Font.Height = -11
                Font.Name = 'MS Sans Serif'
                Font.Style = []
                ParentFont = False
                TabOrder = 2
                OnClick = cbSerie1Click
              end
              object cbSerie2: TCheckBox
                Left = 152
                Top = 9
                Width = 73
                Height = 17
                Caption = 'Quantidade'
                Font.Charset = DEFAULT_CHARSET
                Font.Color = clMaroon
                Font.Height = -11
                Font.Name = 'MS Sans Serif'
                Font.Style = []
                ParentFont = False
                TabOrder = 3
                OnClick = cbSerie2Click
              end
              object cbSerie3: TCheckBox
                Left = 232
                Top = 9
                Width = 49
                Height = 18
                Caption = 'Valor'
                Font.Charset = DEFAULT_CHARSET
                Font.Color = clBlue
                Font.Height = -11
                Font.Name = 'MS Sans Serif'
                Font.Style = []
                ParentFont = False
                TabOrder = 4
                OnClick = cbSerie3Click
              end
              object cbSerie4: TCheckBox
                Left = 284
                Top = 9
                Width = 61
                Height = 18
                Caption = 'Unitario'
                TabOrder = 5
                OnClick = cbSerie4Click
              end
            end
          end
          object TabSheet9: TTabSheet
            Caption = 'Sele'#231#227'o X Atual'
            ImageIndex = 2
            OnShow = TabSheet9Show
            object DBChart2: TDBChart
              Left = 0
              Top = 32
              Width = 734
              Height = 410
              AnimatedZoom = True
              BackWall.Brush.Color = clWhite
              BackWall.Brush.Style = bsClear
              Foot.Text.Strings = (
                '')
              Gradient.EndColor = clSilver
              Gradient.Visible = True
              LeftWall.Color = clSilver
              Title.Text.Strings = (
                '')
              Title.Visible = False
              BottomAxis.Inverted = True
              MaxPointsPerPage = 18
              View3D = False
              Align = alClient
              BevelOuter = bvNone
              TabOrder = 0
              AutoSize = True
              object LineSeries5: TLineSeries
                Marks.ArrowLength = 20
                Marks.Style = smsValue
                Marks.Visible = False
                DataSource = qryResumo
                SeriesColor = clRed
                ShowInLegend = False
                Title = 'Comiss'#227'o'
                XLabelsSource = 'RELCREDITO_PERIODO'
                Dark3D = False
                Pointer.InflateMargins = True
                Pointer.Style = psCircle
                Pointer.Visible = True
                XValues.DateTime = False
                XValues.Name = 'X'
                XValues.Multiplier = 1.000000000000000000
                XValues.Order = loAscending
                YValues.DateTime = False
                YValues.Name = 'Y'
                YValues.Multiplier = 1.000000000000000000
                YValues.Order = loNone
                YValues.ValueSource = 'RELCREDITO_COMISSAO'
              end
              object LineSeries6: TLineSeries
                Marks.ArrowLength = 20
                Marks.Style = smsValue
                Marks.Visible = False
                DataSource = qryResumo
                SeriesColor = clMaroon
                ShowInLegend = False
                Title = 'Qtd'
                XLabelsSource = 'RELCREDITO_PERIODO'
                Dark3D = False
                Pointer.InflateMargins = True
                Pointer.Style = psCircle
                Pointer.Visible = True
                XValues.DateTime = False
                XValues.Name = 'X'
                XValues.Multiplier = 1.000000000000000000
                XValues.Order = loAscending
                YValues.DateTime = False
                YValues.Name = 'Y'
                YValues.Multiplier = 1.000000000000000000
                YValues.Order = loNone
                YValues.ValueSource = 'RELCREDITO_QTD'
              end
              object LineSeries7: TLineSeries
                Active = False
                Marks.ArrowLength = 20
                Marks.Style = smsValue
                Marks.Visible = False
                DataSource = qryResumo
                SeriesColor = clBlue
                ShowInLegend = False
                Title = 'Valor'
                XLabelsSource = 'RELCREDITO_PERIODO'
                Dark3D = False
                Pointer.InflateMargins = True
                Pointer.Style = psCircle
                Pointer.Visible = True
                XValues.DateTime = False
                XValues.Name = 'X'
                XValues.Multiplier = 1.000000000000000000
                XValues.Order = loAscending
                YValues.DateTime = False
                YValues.Name = 'Y'
                YValues.Multiplier = 1.000000000000000000
                YValues.Order = loNone
                YValues.ValueSource = 'RELCREDITO_VALOR'
              end
              object LineSeries8: TLineSeries
                Active = False
                Marks.ArrowLength = 20
                Marks.Style = smsValue
                Marks.Visible = False
                DataSource = qryResumo
                SeriesColor = clBlack
                ShowInLegend = False
                Title = 'Tarifa'
                XLabelsSource = 'RELCREDITO_PERIODO'
                Dark3D = False
                Pointer.InflateMargins = True
                Pointer.Style = psCircle
                Pointer.Visible = True
                XValues.DateTime = False
                XValues.Name = 'X'
                XValues.Multiplier = 1.000000000000000000
                XValues.Order = loAscending
                YValues.DateTime = False
                YValues.Name = 'Y'
                YValues.Multiplier = 1.000000000000000000
                YValues.Order = loNone
                YValues.ValueSource = 'RELCREDITO_TARIFA'
              end
              object Series5: TLineSeries
                Active = False
                Marks.ArrowLength = 20
                Marks.Style = smsValue
                Marks.Visible = False
                DataSource = qryHistorico
                SeriesColor = clRed
                ShowInLegend = False
                Title = 'Comiss'#227'o'
                XLabelsSource = 'RELCREDITO_PERIODO'
                Dark3D = False
                LinePen.Width = 2
                Pointer.InflateMargins = True
                Pointer.Style = psCircle
                Pointer.Visible = True
                XValues.DateTime = False
                XValues.Name = 'X'
                XValues.Multiplier = 1.000000000000000000
                XValues.Order = loAscending
                YValues.DateTime = False
                YValues.Name = 'Y'
                YValues.Multiplier = 1.000000000000000000
                YValues.Order = loNone
                YValues.ValueSource = 'RELCREDITO_COMISSAO'
              end
              object LineSeries9: TLineSeries
                Active = False
                Marks.ArrowLength = 20
                Marks.Style = smsValue
                Marks.Visible = False
                DataSource = qryHistorico
                SeriesColor = clMaroon
                ShowInLegend = False
                Title = 'Qtd'
                XLabelsSource = 'RELCREDITO_PERIODO'
                Dark3D = False
                LinePen.Width = 3
                Pointer.InflateMargins = True
                Pointer.Style = psCircle
                Pointer.Visible = True
                XValues.DateTime = False
                XValues.Name = 'X'
                XValues.Multiplier = 1.000000000000000000
                XValues.Order = loAscending
                YValues.DateTime = False
                YValues.Name = 'Y'
                YValues.Multiplier = 1.000000000000000000
                YValues.Order = loNone
                YValues.ValueSource = 'RELCREDITO_QTD'
              end
              object Series6: TLineSeries
                Active = False
                Marks.ArrowLength = 20
                Marks.Style = smsValue
                Marks.Visible = False
                DataSource = qryHistorico
                SeriesColor = clBlue
                ShowInLegend = False
                Title = 'Valor'
                XLabelsSource = 'RELCREDITO_PERIODO'
                Dark3D = False
                LinePen.Width = 2
                Pointer.InflateMargins = True
                Pointer.Style = psCircle
                Pointer.Visible = True
                XValues.DateTime = False
                XValues.Name = 'X'
                XValues.Multiplier = 1.000000000000000000
                XValues.Order = loAscending
                YValues.DateTime = False
                YValues.Name = 'Y'
                YValues.Multiplier = 1.000000000000000000
                YValues.Order = loNone
                YValues.ValueSource = 'RELCREDITO_VALOR'
              end
              object Series7: TLineSeries
                Active = False
                Marks.ArrowLength = 20
                Marks.Style = smsValue
                Marks.Visible = False
                DataSource = qryHistorico
                SeriesColor = clBlack
                ShowInLegend = False
                Title = 'Tarifa'
                XLabelsSource = 'RELCREDITO_PERIODO'
                Dark3D = False
                LinePen.Width = 2
                Pointer.InflateMargins = True
                Pointer.Style = psCircle
                Pointer.Visible = True
                XValues.DateTime = False
                XValues.Name = 'X'
                XValues.Multiplier = 1.000000000000000000
                XValues.Order = loAscending
                YValues.DateTime = False
                YValues.Name = 'Y'
                YValues.Multiplier = 1.000000000000000000
                YValues.Order = loNone
                YValues.ValueSource = 'RELCREDITO_TARIFA'
              end
            end
            object Panel5: TPanel
              Left = 0
              Top = 0
              Width = 734
              Height = 32
              Align = alTop
              TabOrder = 1
              object Button5: TButton
                Left = 3
                Top = 8
                Width = 35
                Height = 22
                Caption = '<<'
                TabOrder = 0
                OnClick = Button3Click
              end
              object Button6: TButton
                Left = 40
                Top = 8
                Width = 35
                Height = 21
                Caption = '>>'
                TabOrder = 1
                OnClick = Button4Click
              end
              object cbSerie01: TCheckBox
                Left = 80
                Top = 8
                Width = 73
                Height = 17
                Caption = 'Comiss'#227'o'
                Font.Charset = DEFAULT_CHARSET
                Font.Color = clRed
                Font.Height = -11
                Font.Name = 'MS Sans Serif'
                Font.Style = []
                ParentFont = False
                TabOrder = 2
                OnClick = cbSerie01Click
              end
              object cbSerie02: TCheckBox
                Left = 152
                Top = 9
                Width = 73
                Height = 17
                Caption = 'Quantidade'
                Font.Charset = DEFAULT_CHARSET
                Font.Color = clMaroon
                Font.Height = -11
                Font.Name = 'MS Sans Serif'
                Font.Style = []
                ParentFont = False
                TabOrder = 3
                OnClick = cbSerie02Click
              end
              object cbSerie03: TCheckBox
                Left = 232
                Top = 9
                Width = 49
                Height = 18
                Caption = 'Valor'
                Font.Charset = DEFAULT_CHARSET
                Font.Color = clBlue
                Font.Height = -11
                Font.Name = 'MS Sans Serif'
                Font.Style = []
                ParentFont = False
                TabOrder = 4
                OnClick = cbSerie03Click
              end
              object cbSerie04: TCheckBox
                Left = 284
                Top = 9
                Width = 61
                Height = 18
                Caption = 'Unitario'
                TabOrder = 5
                OnClick = cbSerie04Click
              end
              object cbSerie06: TCheckBox
                Left = 432
                Top = 10
                Width = 73
                Height = 17
                Caption = 'Qtd. Atual'
                Font.Charset = DEFAULT_CHARSET
                Font.Color = clMaroon
                Font.Height = -11
                Font.Name = 'MS Sans Serif'
                Font.Style = []
                ParentFont = False
                TabOrder = 6
                OnClick = cbSerie06Click
              end
              object cbSerie05: TCheckBox
                Left = 352
                Top = 10
                Width = 73
                Height = 17
                Caption = 'Com. Atual'
                Font.Charset = DEFAULT_CHARSET
                Font.Color = clRed
                Font.Height = -11
                Font.Name = 'MS Sans Serif'
                Font.Style = []
                ParentFont = False
                TabOrder = 7
                OnClick = cbSerie05Click
              end
              object cbSerie07: TCheckBox
                Left = 512
                Top = 9
                Width = 65
                Height = 18
                Caption = 'Vlr. Atual'
                Font.Charset = DEFAULT_CHARSET
                Font.Color = clBlue
                Font.Height = -11
                Font.Name = 'MS Sans Serif'
                Font.Style = []
                ParentFont = False
                TabOrder = 8
                OnClick = cbSerie07Click
              end
              object cbSerie08: TCheckBox
                Left = 580
                Top = 9
                Width = 77
                Height = 18
                Caption = 'Unit. Atual'
                TabOrder = 9
                OnClick = cbSerie08Click
              end
            end
          end
          object TabSheet3: TTabSheet
            Caption = 'Maiores'
            ImageIndex = 2
            OnShow = TabSheet3Show
            object DBChart3: TDBChart
              Left = 0
              Top = 38
              Width = 734
              Height = 404
              AnimatedZoom = True
              BackWall.Brush.Color = clWhite
              Foot.Text.Strings = (
                '')
              Gradient.Direction = gdBottomTop
              Gradient.EndColor = clSilver
              Gradient.Visible = True
              LeftWall.Color = clSilver
              Title.AdjustFrame = False
              Title.Text.Strings = (
                '')
              Title.Visible = False
              BottomAxis.Inverted = True
              LeftAxis.Title.Caption = 'Maiores Comiss'#245'es'
              LeftAxis.Visible = False
              Legend.Visible = False
              MaxPointsPerPage = 18
              View3D = False
              View3DOptions.Elevation = 315
              View3DOptions.Orthogonal = False
              View3DOptions.Perspective = 0
              View3DOptions.Rotation = 360
              Align = alClient
              BevelOuter = bvNone
              TabOrder = 0
              AutoSize = True
              object LineSeries13: TPieSeries
                Marks.ArrowLength = 20
                Marks.Style = smsLabelPercentTotal
                Marks.Visible = True
                DataSource = qryMaioMeno
                SeriesColor = clBlack
                ShowInLegend = False
                Title = 'Maiores Comiss'#245'es'
                XLabelsSource = 'RELCONVENIO_DESCRICAO'
                Circled = True
                Dark3D = False
                ExplodeBiggest = 10
                OtherSlice.Style = poBelowPercent
                OtherSlice.Text = 'Outros'
                OtherSlice.Value = 3.000000000000000000
                PieValues.DateTime = False
                PieValues.Name = 'Pie'
                PieValues.Multiplier = 1.000000000000000000
                PieValues.Order = loDescending
                PieValues.ValueSource = 'RELCREDITO_COMISSAO'
              end
              object Series8: TPieSeries
                Active = False
                Marks.ArrowLength = 20
                Marks.Style = smsLabelPercentTotal
                Marks.Visible = True
                DataSource = qryMaioMeno
                SeriesColor = clBlack
                ShowInLegend = False
                Title = 'Maiores quantidades'
                XLabelsSource = 'RELCONVENIO_DESCRICAO'
                Circled = True
                Dark3D = False
                ExplodeBiggest = 10
                OtherSlice.Style = poBelowPercent
                OtherSlice.Text = 'Outros'
                OtherSlice.Value = 3.000000000000000000
                PieValues.DateTime = False
                PieValues.Name = 'Pie'
                PieValues.Multiplier = 1.000000000000000000
                PieValues.Order = loDescending
                PieValues.ValueSource = 'RELCREDITO_QTD'
              end
              object Series9: TPieSeries
                Active = False
                Marks.ArrowLength = 20
                Marks.Style = smsLabelPercentTotal
                Marks.Visible = True
                DataSource = qryMaioMeno
                SeriesColor = clBlack
                ShowInLegend = False
                Title = 'Maiores valores recebidos'
                XLabelsSource = 'RELCONVENIO_DESCRICAO'
                Circled = True
                Dark3D = False
                ExplodeBiggest = 10
                OtherSlice.Style = poBelowPercent
                OtherSlice.Text = 'Outros'
                OtherSlice.Value = 3.000000000000000000
                PieValues.DateTime = False
                PieValues.Name = 'Pie'
                PieValues.Multiplier = 1.000000000000000000
                PieValues.Order = loDescending
                PieValues.ValueSource = 'RELCREDITO_VALOR'
              end
              object Series10: TPieSeries
                Active = False
                Marks.ArrowLength = 20
                Marks.Style = smsLabelPercentTotal
                Marks.Visible = True
                DataSource = qryPosto
                SeriesColor = clBlack
                ShowInLegend = False
                Title = 'Maiores postos arrecadadores '
                XLabelsSource = 'NOME_FANTASIA'
                Circled = True
                Dark3D = False
                ExplodeBiggest = 10
                OtherSlice.Style = poBelowPercent
                OtherSlice.Text = 'Outros'
                OtherSlice.Value = 3.000000000000000000
                PieValues.DateTime = False
                PieValues.Name = 'Pie'
                PieValues.Multiplier = 1.000000000000000000
                PieValues.Order = loDescending
                PieValues.ValueSource = 'COMISSAO'
              end
            end
            object Panel4: TPanel
              Left = 0
              Top = 0
              Width = 734
              Height = 38
              Align = alTop
              TabOrder = 1
              object cbSerie: TComboBox
                Left = 8
                Top = 11
                Width = 185
                Height = 21
                ItemHeight = 13
                TabOrder = 0
                Text = 'Maiores comiss'#245'es'
                OnChange = cbSerieChange
                Items.Strings = (
                  'Maiores comiss'#245'es'
                  'Maiores quantidades'
                  'Maiores valores de t'#237'tulo'
                  'Maiores arrecadadores')
              end
            end
          end
        end
      end
      object TabSheet1: TTabSheet
        Caption = 'Faixa de tarifas'
        ImageIndex = 1
        object SMDBGrid1: TSMDBGrid
          Left = 0
          Top = 0
          Width = 742
          Height = 470
          Align = alClient
          Color = clWhite
          Ctl3D = False
          DataSource = dsFaixas
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clWindowText
          Font.Height = -11
          Font.Name = 'MS Sans Serif'
          Font.Style = []
          Options = [dgTitles, dgIndicator, dgColumnResize, dgColLines, dgTabs, dgRowSelect, dgAlwaysShowSelection, dgConfirmDelete, dgCancelOnExit]
          ParentCtl3D = False
          ParentFont = False
          ReadOnly = True
          TabOrder = 0
          TitleFont.Charset = DEFAULT_CHARSET
          TitleFont.Color = clBlack
          TitleFont.Height = -11
          TitleFont.Name = 'MS Sans Serif'
          TitleFont.Style = [fsBold]
          Flat = True
          BandsFont.Charset = DEFAULT_CHARSET
          BandsFont.Color = clWindowText
          BandsFont.Height = -11
          BandsFont.Name = 'MS Sans Serif'
          BandsFont.Style = []
          Groupings = <>
          GridStyle.Style = gsSoftBrick
          GridStyle.OddColor = 14675694
          GridStyle.EvenColor = 13493476
          TitleHeight.PixelCount = 24
          FooterColor = clBtnFace
          ExOptions = [eoBooleanAsCheckBox, eoDisableDelete, eoDisableInsert, eoDrawGraphicField, eoENTERlikeTAB, eoKeepSelection, eoRowNumber, eoRowSizing, eoSelectedTitle, eoShowGlyphs, eoShowLookup, eoShowRecNo, eoStandardPopup, eoBLOBEditor]
          RegistryKey = 'Software\Scalabium'
          RegistrySection = 'SMDBGrid'
          WidthOfIndicator = 11
          DefaultRowHeight = 16
          ScrollBars = ssHorizontal
          ColCount = 4
          RowCount = 2
          Columns = <
            item
              Expanded = False
              FieldName = 'RELCONVENIOTARIFAIXA_LIMITEINFERIOR'
              Width = 97
              Visible = True
              FooterType = ftCustom
            end
            item
              Expanded = False
              FieldName = 'RELCONVENIOTARIFAIXA_LIMITESUPERIOR'
              Width = 95
              Visible = True
              FooterType = ftCustom
            end
            item
              Expanded = False
              FieldName = 'RELCONVENIOTARIFAIXA_VALOR'
              Width = 98
              Visible = True
              FooterType = ftCustom
            end>
        end
      end
    end
    object Panel2: TPanel
      Left = 1
      Top = 1
      Width = 750
      Height = 80
      Align = alTop
      BevelOuter = bvNone
      TabOrder = 1
      object Label1: TLabel
        Left = 16
        Top = 8
        Width = 36
        Height = 13
        Caption = 'C'#243'digo:'
      end
      object Label2: TLabel
        Left = 16
        Top = 24
        Width = 74
        Height = 13
        Caption = 'Nome Fantasia:'
      end
      object Label3: TLabel
        Left = 16
        Top = 56
        Width = 30
        Height = 13
        Caption = 'Tarifa:'
      end
      object Label8: TLabel
        Left = 240
        Top = 40
        Width = 49
        Height = 13
        Caption = 'Subgrupo:'
      end
      object DBText1: TDBText
        Left = 55
        Top = 9
        Width = 50
        Height = 13
        AutoSize = True
        DataField = 'RELCONVENIO_CODIGO'
        DataSource = dsDados
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -11
        Font.Name = 'MS Sans Serif'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object DBText2: TDBText
        Left = 95
        Top = 25
        Width = 50
        Height = 13
        AutoSize = True
        DataField = 'RELCONVENIO_DESCRICAO'
        DataSource = dsDados
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -11
        Font.Name = 'MS Sans Serif'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object DBText3: TDBText
        Left = 55
        Top = 57
        Width = 50
        Height = 13
        AutoSize = True
        DataField = 'RELCONVENIO_VALORTARIFA'
        DataSource = dsDados
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -11
        Font.Name = 'MS Sans Serif'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object DBText7: TDBText
        Left = 292
        Top = 41
        Width = 50
        Height = 13
        AutoSize = True
        DataField = 'RELSUBGRUPOCONVENIO_DESCRICAO'
        DataSource = dsSubGrupodoConvenio
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -11
        Font.Name = 'MS Sans Serif'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object Label5: TLabel
        Left = 16
        Top = 40
        Width = 32
        Height = 13
        Caption = 'Grupo:'
      end
      object DBText4: TDBText
        Left = 55
        Top = 41
        Width = 50
        Height = 13
        AutoSize = True
        DataField = 'RELGRUPOCONVENIO_DESCRICAO'
        DataSource = dsDados
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -11
        Font.Name = 'MS Sans Serif'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object Label6: TLabel
        Left = 240
        Top = 56
        Width = 65
        Height = 13
        Caption = 'Tipo de tarifa:'
      end
      object DBText5: TDBText
        Left = 309
        Top = 57
        Width = 50
        Height = 13
        AutoSize = True
        DataField = 'RELCONVENIO_TIPOTARIFA'
        DataSource = dsDados
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -11
        Font.Name = 'MS Sans Serif'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object DBCheckBox3: TDBCheckBox
        Left = 240
        Top = 10
        Width = 57
        Height = 17
        Caption = 'Ativo'
        Ctl3D = False
        DataField = 'RELCONVENIO_ATIVO'
        DataSource = dsDados
        ParentCtl3D = False
        ReadOnly = True
        TabOrder = 0
        ValueChecked = 'S'
        ValueUnchecked = 'N'
      end
    end
  end
  inherited ToolBar1: TToolBar
    Width = 1036
    ButtonWidth = 76
    inherited ToolButton2: TToolButton
      Left = 76
    end
    inherited ToolButton3: TToolButton
      Left = 152
    end
    inherited ToolButton4: TToolButton
      Left = 228
    end
    object ToolButton5: TToolButton
      Left = 236
      Top = 2
      Action = actSair
    end
  end
  inherited pnCabecalho: TPanel
    Width = 1036
    inherited Image1: TImage
      Width = 1036
    end
  end
  inherited dsDados: TDataSource
    Left = 32
    Top = 112
  end
  inherited qryDados: TADOQuery
    CursorType = ctStatic
    BeforeOpen = qryDadosBeforeOpen
    BeforeClose = qryDadosBeforeClose
    AfterClose = qryDadosAfterClose
    AfterScroll = qryDadosAfterScroll
    Parameters = <
      item
        Name = 'CRITERIO'
        DataType = ftString
        NumericScale = 255
        Precision = 255
        Size = 50
        Value = '%'
      end
      item
        Name = 'CODIGO'
        Attributes = [paSigned]
        DataType = ftInteger
        Precision = 10
        Size = 4
        Value = 0
      end
      item
        Name = 'ATIVO'
        DataType = ftString
        NumericScale = 255
        Precision = 255
        Size = 1
        Value = 'S'
      end
      item
        Name = 'GRUPO'
        DataType = ftString
        NumericScale = 255
        Precision = 255
        Size = 50
        Value = '%'
      end
      item
        Name = 'SUBGRUPO'
        DataType = ftString
        NumericScale = 255
        Precision = 255
        Size = 50
        Value = '%'
      end>
    SQL.Strings = (
      
        'select C.*, G.RELGRUPOCONVENIO_DESCRICAO, SG.RELSUBGRUPOCONVENIO' +
        '_DESCRICAO'
      'from RELCONVENIO C'
      
        'inner join RELGRUPOCONVENIO G on (G.RELGRUPOCONVENIO_CODIGO=C.RE' +
        'LGRUPOCONVENIO_CODIGO)'
      
        'inner join RELSUBGRUPOCONVENIO SG on (SG.RELGRUPOCONVENIO_CODIGO' +
        '=C.RELGRUPOCONVENIO_CODIGO and SG.RELSUBGRUPOCONVENIO_CODIGO=C.R' +
        'ELSUBGRUPOCONVENIO_CODIGO)'
      'WHERE (RELCONVENIO_DESCRICAO LIKE :CRITERIO)'
      'AND (RELCONVENIO_CODIGO >= :CODIGO)'
      'AND (RELCONVENIO_ATIVO like :ATIVO)'
      'and (RELGRUPOCONVENIO_DESCRICAO like :GRUPO)'
      'and (RELSUBGRUPOCONVENIO_DESCRICAO like :SUBGRUPO)')
    Left = 24
    object qryDadosRELCONVENIO_CODIGO: TIntegerField
      DisplayLabel = 'C'#243'digo'
      FieldName = 'RELCONVENIO_CODIGO'
    end
    object qryDadosRELCONVENIO_DESCRICAO: TStringField
      DisplayLabel = 'Descri'#231#227'o'
      FieldName = 'RELCONVENIO_DESCRICAO'
      Size = 50
    end
    object qryDadosRELGRUPOCONVENIO_CODIGO: TIntegerField
      FieldName = 'RELGRUPOCONVENIO_CODIGO'
    end
    object qryDadosRELCONVENIO_VALORTARIFA: TBCDField
      FieldName = 'RELCONVENIO_VALORTARIFA'
      currency = True
      Precision = 19
    end
    object qryDadosRELSUBGRUPOCONVENIO_CODIGO: TIntegerField
      FieldName = 'RELSUBGRUPOCONVENIO_CODIGO'
    end
    object qryDadosRELCONVENIO_TIPOTARIFA: TStringField
      FieldName = 'RELCONVENIO_TIPOTARIFA'
      FixedChar = True
      Size = 1
    end
    object qryDadosRELCONVENIO_ATIVO: TStringField
      FieldName = 'RELCONVENIO_ATIVO'
      FixedChar = True
      Size = 1
    end
    object qryDadosRELGRUPOCONVENIO_DESCRICAO: TStringField
      FieldName = 'RELGRUPOCONVENIO_DESCRICAO'
      Size = 50
    end
  end
  inherited actAcoes: TActionList
    Left = 140
    inherited actNovo: TAction
      Caption = 'Consolidar'
    end
    object actSair: TAction
      Caption = 'Sair'
      ImageIndex = 5
      OnExecute = actSairExecute
    end
  end
  inherited imlIcones: TImageList
    Left = 84
    Top = 229
    Bitmap = {
      494C010106000900040010001000FFFFFFFFFF10FFFFFFFFFFFFFFFF424D3600
      0000000000003600000028000000400000003000000001002000000000000030
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      00000000000000000000000000000000000000000000000000002A363800BFBF
      BF00000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      00000000000000000000000000000000000000000000BFBFBF00BFBFBF00BFBF
      BF00BFBFBF00BFBFBF00BFBFBF00BFBFBF00BFBFBF00BFBFBF00BFBFBF00BFBF
      BF00BFBFBF00BFBFBF00BFBFBF00000000000000000000000000C4C9CE000000
      000000000000010102002101D4002101D4002101D4002101D4002101D4002101
      D4008F9A9C000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      00000000000000000000000000000000000000000000BFBFBF00BFBFBF00BFBF
      BF00BFBFBF00BFBFBF00BFBFBF00BFBFBF00BFBFBF00BFBFBF00BFBFBF00BFBF
      BF00BFBFBF00BFBFBF00BFBFBF000000000000000000C4C9CE00000000000000
      0000010102002101D4002101D4002101D4002101D4002101D4002101D4002101
      D4002101D4008F9A9C0000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      000000000000000000000000000000000000C4C9CE0000000000000000000000
      00002101D4002101D4002101D4002101D4002101D4002101D4002101D4002101
      D4002101D4002101D4008F9A9C00000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      00000000000000000000000000000000000000000000FFFFFF00BFBFBF00FFFF
      FF00BFBFBF00FFFFFF00BFBFBF00FFFFFF00BFBFBF00FFFFFF00BFBFBF00FFFF
      FF00BFBFBF00FFFFFF00BFBFBF00000000000000000000000000000000002101
      D4002101D4002101D4002101D4002101D4002101D4002101D4002101D4002101
      D4002101D4002101D4002101D4008F9A9C000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      00000000000000000000000000000000000000000000BFBFBF00FFFFFF00BFBF
      BF00FFFFFF00BFBFBF00FFFFFF00BFBFBF00FFFFFF00BFBFBF00FFFFFF00BFBF
      BF00FFFFFF000000FF00FFFFFF000000000000000000000000002101D4002101
      D4002101D4002101D4002101D4002101D4002101D4002101D4002101D4002101
      D4002101D4002101D4002101D4002101D4000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      00000000000000000000000000000000000000000000FFFFFF00BFBFBF00FFFF
      FF00BFBFBF00FFFFFF00BFBFBF00FFFFFF00BFBFBF00FFFFFF00BFBFBF00FFFF
      FF00BFBFBF00FFFFFF00BFBFBF000000000000000000000000002101D4002101
      D400FFFFFF00FFFFFF005F54B100FFFFFF00F7EFFF005F54B100FFFFFF002101
      D400FFFFFF002101D4002101D4002101D4000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      00000000000000000000000000000000000000000000000000002101D4002101
      D400FFFFFF002101D4002101D400D6BDF600FFFFFF002101D400FFFFFF002101
      D400FFFFFF002101D4002101D4002101D4000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF000000000000000000000000000000000000000000000000002101D4002101
      D400FFFFFF002101D4002101D400D6BDF600FFFFFF002101D400FFFFFF002101
      D400FFFFFF002101D4002101D4002101D4000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000FFFFFF0000000000000000000000000000000000FFFFFF0000000000FFFF
      FF000000000000000000000000000000000000000000000000002101D4002101
      D400FFFFFF00FFFFFF002101D400FFFFFF00F7EFFF004A01D600FFFFFF002101
      D400FFFFFF00FFFFFF002101D4002101D4000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00000000000000000000000000000000002A363800000000002101D4002101
      D4002101D4002101D4002101D4002101D4002101D4002101D4002101D4002101
      D4002101D4002101D4002101D4002101D4000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000FFFFFF000000000000000000FFFFFF000000000000000000000000000000
      000000000000000000000000000000000000000000002A363800010102002101
      D4002101D4002101D4002101D4002101D4002101D4002101D4002101D4002101
      D4002101D4002101D4002101D40009081D000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000FFFFFF00FFFFFF00FFFFFF00FFFFFF0000000000FFFFFF00FFFFFF000000
      00000000000000000000000000000000000000000000000000002A3638000101
      02002101D4002101D4002101D4002101D4002101D4002101D4002101D4002101
      D4002101D4002101D40009081D00000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000FFFFFF0000000000BFBFBF00FFFFFF0000000000FFFFFF00000000000000
      0000000000000000000000000000000000000000000000000000000000002A36
      38002101D4002101D4002101D4002101D4002101D4002101D4002101D4002101
      D4002101D40009081D0000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000FFFFFF00FFFFFF00FFFFFF00FFFFFF000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000002101D4002101D4002101D4002101D4002101D4002101D4002101
      D400171129000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      000000000000C4C9CE0019108300191083001910830019108300191083001910
      8300000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00000000000000000000000000000000000000
      0000FFFFFF007F7F7F007F7F7F007F7F7F007F7F7F007F7F7F007F7F7F000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      000000000000000000000000000000000000FFFFFF00FFFFFF0000000000FFFF
      FF000000000000000000FFFFFF00000000000000000000000000000000000000
      0000FFFFFF0000000000BFBFBF0000000000BFBFBF00000000007F7F7F000000
      0000000000000000000000000000000000000000000000000000000000000000
      000000000000BFBFBF00FFFFFF00BFBFBF00BFBFBF00BFBFBF00000000000000
      000000000000000000000000000000000000000000000000000000000000FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF0000000000000000000000000000000000FFFF0000000000000000000000FF
      FF00FFFFFF0000FFFF00FFFFFF0000FFFF0000000000FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00000000000000000000000000000000000000
      0000FFFFFF0000000000BFBFBF00000000007F7F7F00000000007F7F7F000000
      000000000000000000000000000000000000000000000000000000000000FFFF
      FF00FFFFFF00FFFFFF00BFBFBF00FFFFFF00BFBFBF00BFBFBF00BFBFBF00FFFF
      FF0000000000000000000000000000000000000000000000000000000000FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF0000000000000000000000000000000000FFFF00000000000000FFFF00FFFF
      FF0000FFFF00FFFFFF00000000000000000000000000FFFFFF00FFFFFF00FFFF
      FF00FFFFFF0000000000FFFFFF00000000000000000000000000000000000000
      0000FFFFFF0000000000BFBFBF0000000000BFBFBF00000000007F7F7F000000
      0000000000000000000000000000000000000000000000000000FF00FF00FFFF
      0000FFFFFF00FFFFFF00FFFFFF00BFBFBF00FFFFFF00BFBFBF00FFFFFF00FFFF
      0000FF00FF00000000000000000000000000000000000000000000000000FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF0000000000000000000000000000000000FFFF000000000000FFFFFF0000FF
      FF00FFFFFF0000FFFF00FFFFFF0000FFFF00FFFFFF0000000000FFFFFF000000
      000000000000FFFFFF00FFFFFF00000000000000000000000000000000000000
      0000FFFFFF0000000000BFBFBF00000000007F7F7F00000000007F7F7F000000
      0000000000000000000000000000000000000000000000000000FF00FF00FF00
      FF00FFFF0000FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF0000FF00
      FF00FF00FF00000000000000000000000000000000000000000000000000FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF0000000000000000000000000000000000FFFF00000000000000FFFF00FFFF
      FF0000FFFF00FFFFFF00000000000000000000000000000000000000000000FF
      FF0000000000FFFFFF00FFFFFF00000000000000000000000000000000000000
      0000FFFFFF0000000000BFBFBF0000000000BFBFBF00000000007F7F7F000000
      0000000000000000000000000000000000000000000000FFFF0000FFFF00FFFF
      FF00FF00FF00FFFF0000000000000000000000000000FFFF0000FF00FF00FFFF
      FF0000FFFF0000FFFF000000000000000000000000000000000000000000FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF0000000000000000000000000000000000FFFF000000000000FFFFFF0000FF
      FF00FFFFFF0000FFFF00FFFFFF0000FFFF00FFFFFF0000FFFF00FFFFFF000000
      0000FFFFFF00FFFFFF00FFFFFF00000000000000000000000000000000000000
      0000FFFFFF0000000000BFBFBF00000000007F7F7F00000000007F7F7F000000
      0000000000000000000000000000000000000000000000FF000000FF000000FF
      FF0000FFFF0000000000BFBFBF00BFBFBF00BFBFBF000000000000FFFF0000FF
      FF0000FF000000FF00000000000000000000000000000000000000000000FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF0000000000000000000000000000000000FFFF00000000000000FFFF00FFFF
      FF0000000000000000000000000000000000000000000000000000000000FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00000000000000000000000000000000000000
      0000FFFFFF0000000000BFBFBF0000000000BFBFBF00000000007F7F7F000000
      00000000000000000000000000000000000000000000FFFF0000FFFF000000FF
      000000FF000000000000BFBFBF0000000000BFBFBF000000000000FF000000FF
      0000FFFF0000FFFF00000000000000000000000000000000000000000000FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF000000000000000000000000000000000000000000000000000000000000FF
      FF00FFFFFF0000FFFF00000000000000000000FFFF0000000000FFFFFF00FFFF
      FF000000000000000000FFFFFF00000000000000000000000000000000000000
      0000FFFFFF0000000000BFBFBF00000000007F7F7F00000000007F7F7F000000
      0000000000000000000000000000000000000000000000FF000000FF000000FF
      FF0000FFFF0000000000BFBFBF00BFBFBF00BFBFBF000000000000FFFF0000FF
      FF0000FF000000FF00000000000000000000000000000000000000000000FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00000000000000000000000000000000000000000000000000000000000000
      000000000000000000000000000000FFFF0000000000FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00000000000000000000000000000000000000
      00007F7F7F00000000007F7F7F00000000007F7F7F00000000007F7F7F000000
      0000000000000000000000000000000000000000000000FFFF0000FFFF00FFFF
      FF00FF00FF00FFFF0000000000000000000000000000FFFF0000FF00FF0000FF
      FF0000FFFF0000FFFF000000000000000000000000000000000000000000FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF0000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000FFFF0000000000FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000FF00FF00FF00
      FF00FFFF0000FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF0000FF00
      FF00FF00FF00000000000000000000000000000000000000000000000000FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF0000000000FFFFFF000000
      0000000000000000000000000000000000000000000000000000000000000000
      00000000000000FFFF0000000000FFFFFF00FFFFFF000000000000000000FFFF
      FF0000000000FFFFFF00FFFFFF0000000000000000000000000000000000FFFF
      FF00BFBFBF00BFBFBF00BFBFBF007F7F7F007F7F7F007F7F7F007F7F7F007F7F
      7F00000000000000000000000000000000000000000000000000FF00FF00FFFF
      0000FFFFFF00BFBFBF00FFFFFF00BFBFBF00FFFFFF00FFFFFF00FFFFFF00FFFF
      0000FF00FF00000000000000000000000000000000000000000000000000FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF0000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      000000FFFF000000000000000000FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF0000000000FFFFFF0000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      000000000000000000000000000000000000000000000000000000000000FFFF
      FF00FFFFFF00FFFFFF00BFBFBF00FFFFFF00BFBFBF00FFFFFF00FFFFFF00FFFF
      FF00000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      FF00000000000000000000000000FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00000000000000000000000000000000000000000000000000000000000000
      000000000000000000007F7F7F007F7F7F007F7F7F0000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      000000000000FFFFFF00FFFFFF00BFBFBF00FFFFFF00BFBFBF00000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      000000000000000000000000000000000000424D3E000000000000003E000000
      2800000040000000300000000100010000000000800100000000000000000000
      000000000000000000000000FFFFFF0000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      000000000000000000000000000000008001F00F000000000000C00700000000
      0000800300000000000000010000000000000000000000000000000000000000
      00000000000000000000000000000000E007000000000000E007000000000000
      E007000000000000E007800000000000E00FC00100000000E01FE00300000000
      E03FF00700000000E07FF80F00000000FFFFFC00E00FFFFFFFFFFC00E00FF83F
      C0072000E00FE00FC0070000E00FC007C0070000E00F8003C0070000E00F8003
      C0070000E00F0001C0070000A00B0001C0070000C0070001C0070000E00F0001
      C007E000E00F0001C007F800C0078003C00FF000C0078003C01FE001C007C007
      C03FC403F83FE00FFFFFEC07F83FF83F00000000000000000000000000000000
      000000000000}
  end
  inherited qryGeral: TADOQuery
    Left = 160
    Top = 216
  end
  object qryBanco: TADOQuery
    Connection = FormPrincipal.cnRegente
    CursorType = ctStatic
    Parameters = <>
    SQL.Strings = (
      'SELECT CODIGO, NOME FROM BANCOS')
    Left = 224
    Top = 264
  end
  object dsBanco: TDataSource
    DataSet = qryBanco
    Left = 224
    Top = 280
  end
  object qryCidade: TADOQuery
    Connection = FormPrincipal.cnRegente
    CursorType = ctStatic
    Parameters = <>
    SQL.Strings = (
      'SELECT CODIGO, DESCRICAO, ESTADO FROM CIDADES')
    Left = 192
    Top = 264
    object qryCidadeCODIGO: TIntegerField
      FieldName = 'CODIGO'
    end
    object qryCidadeDESCRICAO: TStringField
      FieldName = 'DESCRICAO'
      Size = 60
    end
    object qryCidadeESTADO: TStringField
      FieldName = 'ESTADO'
      FixedChar = True
      Size = 2
    end
  end
  object dsCidade: TDataSource
    DataSet = qryCidade
    Left = 192
    Top = 280
  end
  object dsGrupoConvenios: TDataSource
    DataSet = qryGrupoConvenios
    Left = 32
    Top = 152
  end
  object qryGrupoConvenios: TADOQuery
    Connection = FormPrincipal.cnRegente
    CursorType = ctStatic
    Parameters = <>
    SQL.Strings = (
      'SELECT * FROM RELGRUPOCONVENIO')
    Left = 24
    Top = 144
    object qryGrupoConveniosRELGRUPOCONVENIO_CODIGO: TIntegerField
      FieldName = 'RELGRUPOCONVENIO_CODIGO'
    end
    object qryGrupoConveniosRELGRUPOCONVENIO_DESCRICAO: TStringField
      FieldName = 'RELGRUPOCONVENIO_DESCRICAO'
      Size = 50
    end
  end
  object qryConvenio: TADOQuery
    Connection = FormPrincipal.cnRegente
    CursorType = ctStatic
    Parameters = <>
    SQL.Strings = (
      'SELECT CONVENIO,  NOME_CEDEN_AB AS NOME'
      'FROM  CONVENIO ')
    Left = 224
    Top = 216
    object qryConvenioCONVENIO: TIntegerField
      FieldName = 'CONVENIO'
    end
    object qryConvenioNOME: TStringField
      FieldName = 'NOME'
      Size = 24
    end
  end
  object dsConvenio: TDataSource
    DataSet = qryConvenio
    Left = 224
    Top = 232
  end
  object qryTarifa: TADOQuery
    Connection = FormPrincipal.cnRegente
    CursorType = ctStatic
    AfterInsert = qryTarifaAfterInsert
    DataSource = dsGrupoConvenios
    Parameters = <
      item
        Name = 'CONVENIOS_CODIGO'
        Attributes = [paSigned]
        DataType = ftInteger
        Precision = 10
        Size = 4
        Value = 0
      end
      item
        Name = 'CONVENIO_CODIGO'
        Attributes = [paSigned]
        DataType = ftInteger
        Precision = 10
        Size = 4
        Value = 0
      end>
    SQL.Strings = (
      'SELECT *'
      'FROM TARIFA'
      'WHERE CONVENIOS_CODIGO=:CONVENIOS_CODIGO'
      'AND CONVENIO_CODIGO=:CONVENIO_CODIGO')
    Left = 208
    Top = 304
    object qryTarifaCONVENIOS_CODIGO: TIntegerField
      FieldName = 'CONVENIOS_CODIGO'
    end
    object qryTarifaCONVENIO_CODIGO: TIntegerField
      FieldName = 'CONVENIO_CODIGO'
    end
    object qryTarifaTARIFA_VALIDADE: TDateTimeField
      DisplayLabel = 'In'#237'cio'
      FieldName = 'TARIFA_VALIDADE'
      EditMask = '!99/99/9999;1; '
    end
    object qryTarifaTARIFA_VALOR: TBCDField
      DisplayLabel = 'Valor'
      FieldName = 'TARIFA_VALOR'
      currency = True
      Precision = 19
    end
    object qryTarifaTARIFA_TIPO: TStringField
      DisplayLabel = 'Tipo'
      FieldName = 'TARIFA_TIPO'
      FixedChar = True
      Size = 1
    end
    object qryTarifaTARIFA_CPMF: TBooleanField
      DisplayLabel = 'CPMF'
      FieldName = 'TARIFA_CPMF'
    end
    object qryTarifaTARIFA_RETEMCOMISSAO: TBooleanField
      DisplayLabel = 'Com.'
      FieldName = 'TARIFA_RETEMCOMISSAO'
    end
  end
  object dsTarifa: TDataSource
    DataSet = qryTarifa
    Left = 208
    Top = 320
  end
  object qrySubGrupoConvenios: TADOQuery
    Connection = FormPrincipal.cnRegente
    CursorType = ctStatic
    DataSource = dsGrupoConvenios
    Parameters = <
      item
        Name = 'RELGRUPOCONVENIO_CODIGO'
        Attributes = [paSigned]
        DataType = ftInteger
        Precision = 10
        Size = 4
        Value = Null
      end>
    SQL.Strings = (
      'SELECT * FROM RELSUBGRUPOCONVENIO'
      'where RELGRUPOCONVENIO_CODIGO=:RELGRUPOCONVENIO_CODIGO')
    Left = 64
    Top = 144
    object qrySubGrupoConveniosRELGRUPOCONVENIO_CODIGO: TIntegerField
      FieldName = 'RELGRUPOCONVENIO_CODIGO'
    end
    object qrySubGrupoConveniosRELSUBGRUPOCONVENIO_CODIGO: TIntegerField
      FieldName = 'RELSUBGRUPOCONVENIO_CODIGO'
    end
    object qrySubGrupoConveniosRELSUBGRUPOCONVENIO_DESCRICAO: TStringField
      FieldName = 'RELSUBGRUPOCONVENIO_DESCRICAO'
      Size = 50
    end
  end
  object dsSubGrupoConvenios: TDataSource
    DataSet = qrySubGrupoConvenios
    Left = 72
    Top = 152
  end
  object qrySubGrupodoConvenio: TADOQuery
    Connection = FormPrincipal.cnRegente
    CursorType = ctStatic
    DataSource = dsDados
    Parameters = <
      item
        Name = 'RELGRUPOCONVENIO_CODIGO'
        Attributes = [paSigned]
        DataType = ftInteger
        Precision = 10
        Size = 4
        Value = Null
      end
      item
        Name = 'RELSUBGRUPOCONVENIO_CODIGO'
        Attributes = [paSigned]
        DataType = ftInteger
        Precision = 10
        Size = 4
        Value = Null
      end>
    SQL.Strings = (
      'SELECT * FROM RELSUBGRUPOCONVENIO'
      'where RELGRUPOCONVENIO_CODIGO=:RELGRUPOCONVENIO_CODIGO'
      'and RELSUBGRUPOCONVENIO_CODIGO=:RELSUBGRUPOCONVENIO_CODIGO'
      '')
    Left = 64
    Top = 104
    object IntegerField1: TIntegerField
      FieldName = 'RELGRUPOCONVENIO_CODIGO'
    end
    object IntegerField2: TIntegerField
      FieldName = 'RELSUBGRUPOCONVENIO_CODIGO'
    end
    object StringField1: TStringField
      FieldName = 'RELSUBGRUPOCONVENIO_DESCRICAO'
      Size = 50
    end
  end
  object dsSubGrupodoConvenio: TDataSource
    DataSet = qrySubGrupodoConvenio
    Left = 72
    Top = 112
  end
  object qryFaixas: TADOQuery
    Connection = FormPrincipal.cnRegente
    CursorType = ctStatic
    DataSource = dsDados
    Parameters = <
      item
        Name = 'RELGRUPOCONVENIO_CODIGO'
        Attributes = [paSigned]
        DataType = ftInteger
        Precision = 10
        Size = 4
        Value = Null
      end
      item
        Name = 'RELSUBGRUPOCONVENIO_CODIGO'
        Attributes = [paSigned]
        DataType = ftInteger
        Precision = 10
        Size = 4
        Value = Null
      end
      item
        Name = 'RELCONVENIO_CODIGO'
        Attributes = [paSigned]
        DataType = ftInteger
        Precision = 10
        Size = 4
        Value = Null
      end>
    SQL.Strings = (
      'select *  from RELCONVENIOTARIFAIXA'
      'where RELGRUPOCONVENIO_CODIGO=:RELGRUPOCONVENIO_CODIGO'
      'and RELSUBGRUPOCONVENIO_CODIGO=:RELSUBGRUPOCONVENIO_CODIGO'
      'and RELCONVENIO_CODIGO=:RELCONVENIO_CODIGO'
      ''
      '')
    Left = 112
    Top = 104
    object qryFaixasRELGRUPOCONVENIO_CODIGO: TIntegerField
      FieldName = 'RELGRUPOCONVENIO_CODIGO'
    end
    object qryFaixasRELSUBGRUPOCONVENIO_CODIGO: TIntegerField
      FieldName = 'RELSUBGRUPOCONVENIO_CODIGO'
    end
    object qryFaixasRELCONVENIO_CODIGO: TIntegerField
      FieldName = 'RELCONVENIO_CODIGO'
    end
    object qryFaixasRELCONVENIOTARIFAIXA_LIMITEINFERIOR: TBCDField
      DisplayLabel = 'De (exceto)'
      FieldName = 'RELCONVENIOTARIFAIXA_LIMITEINFERIOR'
      Precision = 19
    end
    object qryFaixasRELCONVENIOTARIFAIXA_LIMITESUPERIOR: TBCDField
      DisplayLabel = 'At'#233' (inclusive)'
      FieldName = 'RELCONVENIOTARIFAIXA_LIMITESUPERIOR'
      Precision = 19
    end
    object qryFaixasRELCONVENIOTARIFAIXA_VALOR: TBCDField
      DisplayLabel = 'Valor Tarifa'
      FieldName = 'RELCONVENIOTARIFAIXA_VALOR'
      currency = True
      Precision = 19
    end
  end
  object dsFaixas: TDataSource
    DataSet = qryFaixas
    Left = 120
    Top = 112
  end
  object qryHistorico: TADOQuery
    Connection = FormPrincipal.cnRegente
    CursorType = ctStatic
    AfterPost = qryHistoricoAfterPost
    DataSource = dsDados
    Parameters = <
      item
        Name = 'RELGRUPOCONVENIO_CODIGO'
        Attributes = [paSigned]
        DataType = ftInteger
        Precision = 10
        Size = 4
        Value = Null
      end
      item
        Name = 'RELSUBGRUPOCONVENIO_CODIGO'
        Attributes = [paSigned]
        DataType = ftInteger
        Precision = 10
        Size = 4
        Value = Null
      end
      item
        Name = 'RELCONVENIO_CODIGO'
        Attributes = [paSigned]
        DataType = ftInteger
        Precision = 10
        Size = 4
        Value = Null
      end>
    SQL.Strings = (
      'select *  from RELCREDITO'
      'where RELGRUPOCONVENIO_CODIGO=:RELGRUPOCONVENIO_CODIGO'
      'and RELSUBGRUPOCONVENIO_CODIGO=:RELSUBGRUPOCONVENIO_CODIGO'
      'and RELCONVENIO_CODIGO=:RELCONVENIO_CODIGO'
      'order by ano desc,mes desc'
      ''
      '')
    Left = 152
    Top = 104
    object qryHistoricoRELCREDITO_CODIGO: TAutoIncField
      FieldName = 'RELCREDITO_CODIGO'
      ReadOnly = True
    end
    object qryHistoricoANO: TIntegerField
      FieldName = 'ANO'
    end
    object qryHistoricoMES: TIntegerField
      FieldName = 'MES'
    end
    object qryHistoricoRELGRUPOCONVENIO_CODIGO: TIntegerField
      FieldName = 'RELGRUPOCONVENIO_CODIGO'
    end
    object qryHistoricoRELSUBGRUPOCONVENIO_CODIGO: TIntegerField
      FieldName = 'RELSUBGRUPOCONVENIO_CODIGO'
    end
    object qryHistoricoRELCONVENIO_CODIGO: TIntegerField
      FieldName = 'RELCONVENIO_CODIGO'
    end
    object qryHistoricoRELCREDITO_TARIFA: TFloatField
      DisplayLabel = 'Tarifa'
      FieldName = 'RELCREDITO_TARIFA'
      currency = True
    end
    object qryHistoricoRELCREDITO_QTD: TIntegerField
      DisplayLabel = 'Transa'#231#245'es'
      FieldName = 'RELCREDITO_QTD'
      DisplayFormat = '###,###,###'
    end
    object qryHistoricoRELCREDITO_VALOR: TBCDField
      DisplayLabel = 'Vlr. Arrec.'
      FieldName = 'RELCREDITO_VALOR'
      currency = True
      Precision = 19
    end
    object qryHistoricoRELCREDITO_PERIODO: TStringField
      DisplayLabel = 'Per'#237'odo'
      FieldName = 'RELCREDITO_PERIODO'
      ReadOnly = True
      EditMask = 'AAA\/99;0; '
      FixedChar = True
      Size = 5
    end
    object qryHistoricoRELCONVENIOTARIFA_TIPO: TStringField
      DisplayLabel = 'Tipo'
      FieldName = 'RELCONVENIOTARIFA_TIPO'
      FixedChar = True
      Size = 1
    end
    object qryHistoricoRELCREDITO_COMISSAO: TFloatField
      DisplayLabel = 'Comiss'#227'o'
      FieldName = 'RELCREDITO_COMISSAO'
      ReadOnly = True
      currency = True
    end
  end
  object dsHistorico: TDataSource
    DataSet = qryHistorico
    Left = 160
    Top = 112
  end
  object qryResumo: TADOQuery
    Connection = FormPrincipal.cnRegente
    CursorType = ctStatic
    Parameters = <
      item
        Name = 'CRITERIO'
        DataType = ftString
        NumericScale = 255
        Precision = 255
        Size = 50
        Value = '%'
      end
      item
        Name = 'CODIGO'
        Attributes = [paSigned]
        DataType = ftInteger
        Precision = 10
        Size = 4
        Value = 0
      end
      item
        Name = 'ATIVO'
        DataType = ftString
        NumericScale = 255
        Precision = 255
        Size = 1
        Value = 'S'
      end
      item
        Name = 'GRUPO'
        DataType = ftString
        NumericScale = 255
        Precision = 255
        Size = 50
        Value = '%'
      end
      item
        Name = 'SUBGRUPO'
        DataType = ftString
        NumericScale = 255
        Precision = 255
        Size = 50
        Value = '%'
      end>
    SQL.Strings = (
      
        'select R.RELCREDITO_PERIODO, R.ANO, R.MES,   avg(R.RELCREDITO_CO' +
        'MISSAO/R.RELCREDITO_QTD) RELCREDITO_TARIFA,'
      
        'sum(R.RELCREDITO_QTD) RELCREDITO_QTD, sum(R.RELCREDITO_VALOR) RE' +
        'LCREDITO_VALOR, sum(R.RELCREDITO_COMISSAO) RELCREDITO_COMISSAO'
      'from RELCREDITO R'
      
        'inner join RELCONVENIO C on (C.RELGRUPOCONVENIO_CODIGO=R.RELGRUP' +
        'OCONVENIO_CODIGO'
      'and C.RELSUBGRUPOCONVENIO_CODIGO=R.RELSUBGRUPOCONVENIO_CODIGO'
      'and C.RELCONVENIO_CODIGO=R.RELCONVENIO_CODIGO)'
      
        'inner join RELGRUPOCONVENIO G on (G.RELGRUPOCONVENIO_CODIGO=C.RE' +
        'LGRUPOCONVENIO_CODIGO)'
      
        'inner join RELSUBGRUPOCONVENIO SG on (SG.RELGRUPOCONVENIO_CODIGO' +
        '=C.RELGRUPOCONVENIO_CODIGO and SG.RELSUBGRUPOCONVENIO_CODIGO=C.R' +
        'ELSUBGRUPOCONVENIO_CODIGO)'
      'WHERE (C.RELCONVENIO_DESCRICAO LIKE :CRITERIO)'
      'AND (C.RELCONVENIO_CODIGO >= :CODIGO)'
      'AND (C.RELCONVENIO_ATIVO like :ATIVO)'
      'and (G.RELGRUPOCONVENIO_DESCRICAO like :GRUPO)'
      'and (SG.RELSUBGRUPOCONVENIO_DESCRICAO like :SUBGRUPO)'
      'group by ANO, MES, R.RELCREDITO_PERIODO'
      'order by ANO desc, MES desc')
    Left = 872
    Top = 64
    object qryResumoRELCREDITO_PERIODO: TStringField
      DisplayLabel = 'Per'#237'odo'
      FieldName = 'RELCREDITO_PERIODO'
      Size = 5
    end
    object qryResumoANO: TIntegerField
      FieldName = 'ANO'
    end
    object qryResumoMES: TIntegerField
      FieldName = 'MES'
    end
    object qryResumoRELCREDITO_TARIFA: TBCDField
      DisplayLabel = 'Unit. (M'#233'dia)'
      FieldName = 'RELCREDITO_TARIFA'
      currency = True
      Precision = 19
    end
    object qryResumoRELCREDITO_VALOR: TBCDField
      DisplayLabel = 'Valor Guias'
      FieldName = 'RELCREDITO_VALOR'
      currency = True
      Precision = 19
    end
    object qryResumoRELCREDITO_COMISSAO: TBCDField
      DisplayLabel = 'Comiss'#227'o'
      FieldName = 'RELCREDITO_COMISSAO'
      currency = True
      Precision = 19
    end
    object qryResumoRELCREDITO_QTD: TIntegerField
      DisplayLabel = 'Transa'#231#245'es'
      FieldName = 'RELCREDITO_QTD'
      DisplayFormat = '###,###,###,###'
    end
  end
  object dsResumo: TDataSource
    DataSet = qryResumo
    Left = 880
    Top = 72
  end
  object qryMaioMeno: TADOQuery
    Connection = FormPrincipal.cnRegente
    CursorType = ctStatic
    Parameters = <
      item
        Name = 'CRITERIO'
        DataType = ftString
        NumericScale = 255
        Precision = 255
        Size = 50
        Value = '%'
      end
      item
        Name = 'CODIGO'
        Attributes = [paSigned]
        DataType = ftInteger
        Precision = 10
        Size = 4
        Value = 0
      end
      item
        Name = 'ATIVO'
        DataType = ftString
        NumericScale = 255
        Precision = 255
        Size = 1
        Value = 'S'
      end
      item
        Name = 'GRUPO'
        DataType = ftString
        NumericScale = 255
        Precision = 255
        Size = 50
        Value = '%'
      end
      item
        Name = 'SUBGRUPO'
        DataType = ftString
        NumericScale = 255
        Precision = 255
        Size = 50
        Value = '%'
      end>
    SQL.Strings = (
      
        'select TOP 50 R.RELGRUPOCONVENIO_CODIGO, R.RELSUBGRUPOCONVENIO_C' +
        'ODIGO, R.RELCONVENIO_CODIGO,'
      
        'C.RELCONVENIO_DESCRICAO, avg(case when C.RELCONVENIO_TIPOTARIFA=' +
        #39'$'#39' then'
      
        'R.RELCREDITO_COMISSAO/R.RELCREDITO_QTD else  R.RELCREDITO_COMISS' +
        'AO/R.RELCREDITO_VALOR end) RELCREDITO_TARIFA,'
      
        'sum(R.RELCREDITO_QTD) RELCREDITO_QTD, sum(R.RELCREDITO_VALOR) RE' +
        'LCREDITO_VALOR, sum(R.RELCREDITO_COMISSAO) RELCREDITO_COMISSAO'
      'from RELCREDITO R'
      
        'inner join RELCONVENIO C on (C.RELGRUPOCONVENIO_CODIGO=R.RELGRUP' +
        'OCONVENIO_CODIGO'
      'and C.RELSUBGRUPOCONVENIO_CODIGO=R.RELSUBGRUPOCONVENIO_CODIGO'
      'and C.RELCONVENIO_CODIGO=R.RELCONVENIO_CODIGO)'
      
        'inner join RELGRUPOCONVENIO G on (G.RELGRUPOCONVENIO_CODIGO=C.RE' +
        'LGRUPOCONVENIO_CODIGO)'
      
        'inner join RELSUBGRUPOCONVENIO SG on (SG.RELGRUPOCONVENIO_CODIGO' +
        '=C.RELGRUPOCONVENIO_CODIGO and SG.RELSUBGRUPOCONVENIO_CODIGO=C.R' +
        'ELSUBGRUPOCONVENIO_CODIGO)'
      'WHERE (C.RELCONVENIO_DESCRICAO LIKE :CRITERIO)'
      'AND (C.RELCONVENIO_CODIGO >= :CODIGO)'
      'AND (C.RELCONVENIO_ATIVO like :ATIVO)'
      'and (G.RELGRUPOCONVENIO_DESCRICAO like :GRUPO)'
      'and (SG.RELSUBGRUPOCONVENIO_DESCRICAO like :SUBGRUPO)'
      
        'group by R.RELGRUPOCONVENIO_CODIGO, R.RELSUBGRUPOCONVENIO_CODIGO' +
        ', R.RELCONVENIO_CODIGO, C.RELCONVENIO_DESCRICAO'
      'order by sum(R.RELCREDITO_COMISSAO) desc ')
    Left = 824
    Top = 112
    object qryMaioMenoRELGRUPOCONVENIO_CODIGO: TIntegerField
      FieldName = 'RELGRUPOCONVENIO_CODIGO'
    end
    object qryMaioMenoRELSUBGRUPOCONVENIO_CODIGO: TIntegerField
      FieldName = 'RELSUBGRUPOCONVENIO_CODIGO'
    end
    object qryMaioMenoRELCONVENIO_CODIGO: TIntegerField
      FieldName = 'RELCONVENIO_CODIGO'
    end
    object qryMaioMenoRELCONVENIO_DESCRICAO: TStringField
      FieldName = 'RELCONVENIO_DESCRICAO'
      Size = 50
    end
    object qryMaioMenoRELCREDITO_TARIFA: TBCDField
      FieldName = 'RELCREDITO_TARIFA'
      ReadOnly = True
      Precision = 19
    end
    object qryMaioMenoRELCREDITO_QTD: TIntegerField
      FieldName = 'RELCREDITO_QTD'
      ReadOnly = True
    end
    object qryMaioMenoRELCREDITO_VALOR: TBCDField
      FieldName = 'RELCREDITO_VALOR'
      ReadOnly = True
      Precision = 19
    end
    object qryMaioMenoRELCREDITO_COMISSAO: TBCDField
      FieldName = 'RELCREDITO_COMISSAO'
      ReadOnly = True
      Precision = 19
    end
  end
  object dsMaioMeno: TDataSource
    DataSet = qryMaioMeno
    Left = 832
    Top = 120
  end
  object qryPosto: TADOQuery
    Connection = FormPrincipal.cnRegente
    CursorType = ctStatic
    CommandTimeout = 60
    DataSource = dsDados
    Parameters = <
      item
        Name = 'RELGRUPOCONVENIO_CODIGO'
        Attributes = [paSigned]
        DataType = ftInteger
        Precision = 10
        Size = 4
        Value = Null
      end
      item
        Name = 'RELSUBGRUPOCONVENIO_CODIGO'
        Attributes = [paSigned]
        DataType = ftInteger
        Precision = 10
        Size = 4
        Value = Null
      end
      item
        Name = 'RELCONVENIO_CODIGO'
        Attributes = [paSigned]
        DataType = ftInteger
        Precision = 10
        Size = 4
        Value = Null
      end>
    SQL.Strings = (
      
        'select top 50 D.FRANQUIA, F.NOME_FANTASIA, SUM(D.TOTAL) as QTD, ' +
        'SUM(TOTALV) as VALOR,'
      
        'sum(case when RELCONVENIOTARIFA_TIPO='#39'S'#39' then D.TOTAL*RELCREDITO' +
        '_TARIFA else D.TOTALV*C.RELCREDITO_TARIFA/100 end) as COMISSAO'
      'from RELDIADIA D'
      
        'inner join RELCREDITO C on (C.RELGRUPOCONVENIO_CODIGO=D.RELGRUPO' +
        'CONVENIO_CODIGO '
      'and C.RELSUBGRUPOCONVENIO_CODIGO=D.RELSUBGRUPOCONVENIO_CODIGO '
      
        'and D.CONVENIO=C.RELCONVENIO_CODIGO and C.ANO=D.ANO and C.MES=D.' +
        'MES)'
      'inner join V_FRANQUIA F on (F.CODIGO=D.FRANQUIA)'
      'where D.RELGRUPOCONVENIO_CODIGO=:RELGRUPOCONVENIO_CODIGO'
      'and D.RELSUBGRUPOCONVENIO_CODIGO=:RELSUBGRUPOCONVENIO_CODIGO'
      'and D.CONVENIO=:RELCONVENIO_CODIGO'
      'group by D.FRANQUIA, F.NOME_FANTASIA'
      'order by comissao desc, qtd  desc')
    Left = 896
    Top = 112
    object qryPostoFRANQUIA: TIntegerField
      DisplayLabel = 'Pos'
      FieldName = 'FRANQUIA'
    end
    object qryPostoNOME_FANTASIA: TStringField
      DisplayLabel = 'Posto'
      FieldName = 'NOME_FANTASIA'
      Size = 50
    end
    object qryPostoQTD: TIntegerField
      DisplayLabel = 'Guias'
      FieldName = 'QTD'
      ReadOnly = True
      DisplayFormat = '###,###,###,###'
    end
    object qryPostoVALOR: TBCDField
      DisplayLabel = 'Valor arrecadado'
      FieldName = 'VALOR'
      ReadOnly = True
      currency = True
      Precision = 19
    end
    object qryPostoCOMISSAO: TFloatField
      DisplayLabel = 'Comiss'#227'o gerada'
      FieldName = 'COMISSAO'
      ReadOnly = True
      currency = True
    end
  end
  object dsPosto: TDataSource
    DataSet = qryPosto
    Left = 904
    Top = 120
  end
end
